package com.example.demo.mapper.user;


import com.example.demo.dto.user.reg.PRegDto;
import com.example.demo.entity.user.Parent;
import com.example.demo.entity.user.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-03-31
 * Time:18:38
 */
@Mapper
public interface ParentMapper {

    // 注册
    int reg(PRegDto pRegDto);

    // 根据id查个人信息
    Parent getParentById(Integer parent_id);

    // 登录 - 修改state、unfreezing_time
    Integer upParentState(Parent parent);









//    修改
    Teacher getTeacherById(@Param("id") Integer id);
    //个人信息修改
    int updateTeacherInfo(Teacher teacher);
    //修改个人state以免多次恶意登录
    //更新state+unfreezingtime
    int upTeacherState(Teacher teacher);

}
